home *** CD-ROM | disk | FTP | other *** search
- Path: news.iosphere.net!usenet
- From: ianq@sonetis.com (Ian V. Quickmire)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: HELP!: Error when trying to use cout in MSVC++ 4.0!
- Date: Thu, 21 Mar 1996 20:40:10 GMT
- Organization: IQ Systems Ltd.
- Distribution: inet
- Message-ID: <4isetb$17b@lisa.iosphere.net>
- References: <4i5kpd$eic@mirv.unsw.edu.au> <13MAR199607405255@erich.triumf.ca>
- Reply-To: ianq@sonetis.com
- NNTP-Posting-Host: port034-53-yow.iosphere.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- bennett@erich.triumf.ca (P.Bennett) wrote:
-
- >In article <4i5kpd$eic@mirv.unsw.edu.au>, s2139589@cse.unsw.edu.au (CC) writes...
- >>Hi,
- >>
- >>I am having trouble compiling a very simple program consisting of one
- >>line of code in main(). I am using Microsoft Visual C++ Version 4.0 on
- >>WIN95. Basically I am trying to use cout to print a word, however the
- >>compiler keeps generating the following error:
- >>
- >>E:\Labs\lab1.c(4) : error C2065: 'cout' : undeclared identifier
- >>E:\Labs\lab1.c(4) : error C2297: '<<' : bad right operand
- >>Error executing cl.exe.
- >>lab1.obj - 2 error(s), 0 warning(s)
-
- Did you include the necessary header files for the cout function?
-
- #include <iostream.h>
- #include <fstream.h>
-
- ...
-
- --------------------------------------------------------------
- Work: izq00@ccc.amdahl.com Home: ianq@sonetis.com
- WWW: http://www.sonetis.com/~ianq/ CIS: 74032,573
- --------------------------------------------------------------
-
-